import dva from 'dva'
import { initApplication } from 'DHBStatement/libs/config/config'

// 1. Initialize
const app = dva()

// 2. Plugins
// app.use({});

// 3. Model
app.model(require('./models/employeeAcount').default)
app.model(require('./models/rolePermission').default)
app.model(require('./models/departmentManager').default)
app.model(require('./models/customerService').default)

initApplication({
  system: 'http://localhost:4000/graphql'
  // system: 'http://gql.dhb.com'
}).then(() => {
  app.router(require('./router').default)
  app.start('#root')
})
